// *** ADDED BY HEADER FIXUP ***
#include <fstream>
#include <string>
#include <vector>
// *** END ***
/*
 * emailsAdmin.cpp
 *
 *  Created on: 06/08/2012
 *      Author: Guilherme Branco
 */
 /*----------------------------------*/
 #include "emailsAdmin.h"
 #include "Utilidades.h"
 /*----------------------------------*/
void EmailsAdmin::setValidos()
{
    fstream outarq;
    outarq.open(emailsAdmin);
    string s;
    while(getline(outarq,s))
    {
        Validos.push_back(s);
    }
    outarq.close();
}

vector<string> EmailsAdmin::getValidos()
{
    return Validos;
}

int EmailsAdmin::pesquisar(string pesquisa)
{
    for(unsigned int i=0;i<Validos.size();i++)
    {
        if(pesquisa.compare(Validos.at(i))==0)
        {
            return 1;
        }
    }
}

